import { Model } from '../core';
import { DataService } from '../core/DataService';

export interface User extends Model {
	username: string;
	gender: boolean;
	nickname: string;
	phone: string;
	email: string;
	avatar: string;
	status: number;
}

class UserService extends DataService<UserService, User> {
	protected create(): UserService {
		return this.initTokenInstance('user') as UserService;
	}
}

export const userService = new UserService();
